package com.xms.core.enums;

import java.io.Serializable;

public enum OperationStage implements Serializable {
    PreValidation(0, "PreValidation"),
    PreOperation(1, "PreOperation"),
    PostOperation(2, "PostOperation");

    OperationStage(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public boolean equals(OperationStage compared){
        return this.value() == compared.value();
    }

    public int value() {
        return value;
    }

    public String text() {
        return name;
    }

    private int value;
    private String name;
}
